package cn.edu.sdjzu.xg.eagle;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import cn.edu.sdjzu.xg.eagle.Pagination;
import cn.edu.sdjzu.xg.eagle.TxtHelper;

import java.io.IOException;
import java.util.List;

public class JosnTest2 {
    public static void main(String args[])throws IOException {
        String json_array_str = TxtHelper.readTxt("files/"+"conditionArray.txt");

        List<Condition> conditionList = JSON.parseArray(json_array_str,Condition.class);
     System.out.println(conditionList);

    JSONArray json_array_obj = JSON.parseArray(json_array_str);
    System.out.println(json_array_obj);
    }
}
